dxp-ux

(0 reviews)

Patch BillingAccount (TMF666) Update ebill flag

CASE 1 Unitary Test

Request to enable the ebill

URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/billingAccount/{id}

Base URI Parameter

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (PR, JM, PA, etc.) identifying the business unit.Y
idstringBilling Account Number.Y

Headers

namevaluedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Pattern: ^[a-zA-Z0-9-+/=_]{16,64}$
Minimum characters: 16
Maximum characters: 64
Y
Request
curl --location --request PATCH 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/billingAccount/21519514-21517998' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2gk' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "relatedParty": [
        {
            "id": "15468766786",
            "@type": "msisdn"
        },
        {
            "@type": "channel",
            "name": "Digital"
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "@type": "non-eBill"
            }
        ]
    }
}'
Definitions
namevaluedescriptionrequired
relatedPartyarrayrelated party arrayY
relatedParty.idstringunique identifier of related partyN
relatedParty.@typestringtype of the related partyY*
relatedParty.namestringname of the realted partyY*
billStructureObjectbill structure objectY
billStructure.presentationMediaArraydetails of presentation mediaY
billStructure.presentationMedia.@typeStringtype of bill subscriptionY
[ 200 ]

OK - updateBillingAccount request processed successfully, response body contains an entity corresponding to the requested resource.

Response
{
    "status": 200,
    "description": "Request to update the Ebill Flag received"
}
Definitions
namevaluedescriptionrequired
statusnumberstatus code of the responseN
descriptionstringstatus description of the responseN
[ 200 ] FIXED

OK - updateBillingAccount request processed successfully, response body contains an entity corresponding to the requested resource.

Request
{
    "billStructure": {
        "presentationMedia": [
            {
                "name": "email"
            }
        ]
    }
}
Response
{
    "id": "8211990010042315",
    "state": "acknowledged",
    "billStructure": {
        "presentationMedia": [
            {
                "name": "email"
            }
        ]
    }
}
FIXED Definitions
namevaluedescriptionrequired
idstringunique identifierY
statestringstate of the operationY
billStructureObjectbill structure objectY
billStructure.presentationMediaArraydetails of presentation media.Y
billStructure.presentationMedia.nameStringName of the referred entity.Possible values are
email
mail
Y

Reviews